package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.MemberMessage;
import com.weixing.mall.provider.model.dto.MemberMessageDto;
import com.weixing.mall.provider.model.query.MemberMessageQuery;
import com.weixing.mall.provider.model.vo.AdminMemberMessageVo;
import com.weixing.mall.provider.model.vo.FrontMemberMessageVo;
import com.weixing.mall.provider.model.vo.MemberMessageVo;

import java.util.List;

/**
 * <p>
 * 会员模块-会员消息表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-13
 */
public interface IMemberMessageService extends IService<MemberMessage> {

    MemberMessageVo selectDetail(Long id);

    IPage<MemberMessageVo> selectByMemberId(Page page, long memberId);

    int noReadMessage(Long mid);

    List<MemberMessageVo>  noReadMessageByType(Long mid);

    List<MemberMessageVo>  selectMessageByType(Long aLong, Long type);

   void  saveBit(MemberMessageDto memberMessageDto);

    void  msgReply(MemberMessageDto memberMessageDto);

    IPage<AdminMemberMessageVo> selectMemberMessageList(Page page, MemberMessageQuery memberMessageQuery);

    IPage<FrontMemberMessageVo>  selectMemberMsgList(Page page,Integer type);
}
